package com.ruoyi.offer.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.offer.mapper.HrResumeRecommendMapper;
import com.ruoyi.offer.domain.HrResumeRecommend;
import com.ruoyi.offer.service.IHrResumeRecommendService;

/**
 * 简历推荐Service业务层处理
 * 
 * @author gy
 * @date 2025-05-21
 */
@Service
public class HrResumeRecommendServiceImpl implements IHrResumeRecommendService 
{
    @Autowired
    private HrResumeRecommendMapper hrResumeRecommendMapper;

    /**
     * 查询简历推荐
     * 
     * @param id 简历推荐主键
     * @return 简历推荐
     */
    @Override
    public HrResumeRecommend selectHrResumeRecommendById(Long id)
    {
        return hrResumeRecommendMapper.selectHrResumeRecommendById(id);
    }

    /**
     * 查询简历推荐列表
     * 
     * @param hrResumeRecommend 简历推荐
     * @return 简历推荐
     */
    @Override
    public List<HrResumeRecommend> selectHrResumeRecommendList(HrResumeRecommend hrResumeRecommend)
    {
        return hrResumeRecommendMapper.selectHrResumeRecommendList(hrResumeRecommend);
    }

    /**
     * 新增简历推荐
     * 
     * @param hrResumeRecommend 简历推荐
     * @return 结果
     */
    @Override
    public int insertHrResumeRecommend(HrResumeRecommend hrResumeRecommend)
    {
        return hrResumeRecommendMapper.insertHrResumeRecommend(hrResumeRecommend);
    }

    /**
     * 修改简历推荐
     * 
     * @param hrResumeRecommend 简历推荐
     * @return 结果
     */
    @Override
    public int updateHrResumeRecommend(HrResumeRecommend hrResumeRecommend)
    {
        return hrResumeRecommendMapper.updateHrResumeRecommend(hrResumeRecommend);
    }

    /**
     * 批量删除简历推荐
     * 
     * @param ids 需要删除的简历推荐主键
     * @return 结果
     */
    @Override
    public int deleteHrResumeRecommendByIds(Long[] ids)
    {
        return hrResumeRecommendMapper.deleteHrResumeRecommendByIds(ids);
    }

    /**
     * 删除简历推荐信息
     * 
     * @param id 简历推荐主键
     * @return 结果
     */
    @Override
    public int deleteHrResumeRecommendById(Long id)
    {
        return hrResumeRecommendMapper.deleteHrResumeRecommendById(id);
    }
}
